package springFive;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan
public class App {
//	public ApplicationContext ac = 
//			new AnnotationConfigApplicationContext(Config.class);
	
	@Test
//	public void LoginAction() {
//		LoginAction loginAction=(LoginAction) ac.getBean("getAction");
//		loginAction.login();
//		
//	}
	public static void main(String[] args) {
		ApplicationContext ac = 
				new AnnotationConfigApplicationContext(Config.class);
			LoginAction loginAction=(LoginAction) ac.getBean("loginAction");
			loginAction.login();
		
	}
}
